const { processAllChapters } = require("./Mass-production-files");
// const file_to_path = "E:\\A_working_directory\\hugo_project\\邓云格-项目\\资源\\Mass-production-files测试\\content";
const file_to_path="E:\\A_working_directory\\hugo_project\\邓云格-项目\\应标-0\\content"
/* 您的文件类型配置 */ 
const fileTypes = {
    zh: [
      // 中文的类型和文件列表
      [
        {
          type: "course",
          sourceFiles: [
            "../dav陪标/Excel课程/标0/Excel_cn.md",
            "../dav陪标/MySQL课程/标0/SQL课程目录/cn/SQL教程目录.md",
            "../dav陪标/python课程/标0/数据分析可视化.md",
            "../dav陪标/tableau课程/标0/Tableau课程目录（中文）.md",
          ],
        },
        {
          type: "experiment",
          sourceFiles: [
            "../dav陪标/Excel课程/标0/Excel_cn.md",
            "../dav陪标/MySQL课程/标0/SQL课程目录/cn/SQL实验目录.md",
            "../dav陪标/python课程/标0/数据分析可视化.md",
            "../dav陪标/tableau课程/标0/Tableau课程目录（中文）.md",
          ],
        },
        {
          type: "case",
          sourceFiles: [
            "../dav陪标/综合案例/标0/Excel/Excel(CN).md",
            "../dav陪标/综合案例/标0/MySQL/MySQL综合案例（cn）.md",
            "../dav陪标/综合案例/标0/python/python （cn）.md",
            "../dav陪标/综合案例/标0/tableau/tableau（cn）.md",
          ],
        },
        {
          type: "video",
          sourceFiles: [
            "../dav陪标/Excel课程/标0/Excel_cn.md",
            "../dav陪标/MySQL课程/标0/SQL课程目录/cn/SQL教程目录.md",
            "../dav陪标/python课程/标0/数据分析可视化.md",
            "../dav陪标/tableau课程/标0/Tableau课程目录（中文）.md",
          ],
        },
      ],
    ],
    en: [
      // 英文的类型和文件列表
      [
        {
          type: "course",
          sourceFiles: [
            "../dav陪标/Excel课程/标0/Excel_en.md",
            "../dav陪标/MySQL课程/标0/SQL课程目录/en/SQL教程目录英文.md",
            "../dav陪标/python课程/标0/数据分析可视化(英文).md",
            "../dav陪标/tableau课程/标0/Tableau课程目录（英文）.md",
          ],
        },
        {
          type: "experiment",
          sourceFiles: [
            "../dav陪标/Excel课程/标0/Excel_en.md",
            "../dav陪标/MySQL课程/标0/SQL课程目录/en/SQL实验目录英文.md",
            "../dav陪标/python课程/标0/数据分析可视化(英文).md",
            "../dav陪标/tableau课程/标0/Tableau课程目录（英文）.md",
          ],
        },
        {
          type: "case",
          sourceFiles: [
            "../dav陪标/综合案例/标0/Excel/Excel(EN).md",
            "../dav陪标/综合案例/标0/MySQL/MySQL综合案例（en）.md",
            "../dav陪标/综合案例/标0/python/python数据分析（EN）.md",
            "../dav陪标/综合案例/标0/tableau/tableau（en）.md",
          ],
        },
        {
          type: "video",
          sourceFiles: [
            "../dav陪标/Excel课程/标0/Excel_en.md",
            "../dav陪标/MySQL课程/标0/SQL课程目录/en/SQL教程目录英文.md",
            "../dav陪标/python课程/标0/数据分析可视化(英文).md",
            "../dav陪标/tableau课程/标0/Tableau课程目录（英文）.md",
          ],
        },
      ],
    ],
  };
//   调用处理所有章节的函数
(async () => {
    // 传入项目路径与需要读取的文件路径
  await processAllChapters(file_to_path, fileTypes);
  console.log(file_to_path);
  console.log("All chapters processed.");
  // 所有章节处理完成后执行重置操作
  chapterCount = 1;
  console.log("chapterCount has been reset to 0.");
})();